<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap Admin html Template</title>
	<!-- Bootstrap Styles-->
    <link href="__PUBLIC__static/admin/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="__PUBLIC__static/admin/assets/css/font-awesome.css" rel="stylesheet" />
     <!-- Morris Chart Styles-->

        <!-- Custom Styles-->
    <link href="__PUBLIC__static/admin/assets/css/custom-styles.css" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link href="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        {include file="layout/top" / }
        <!--/. NAV TOP  -->
      {include file="layout/left" / }
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
		  <div class="header">
                        <h1 class="page-header">
                            评 论 <small>列 表</small>
                        </h1>
						<ol class="breadcrumb">
					  <li><a href="{:url('admin/ht/index')}">Home</a></li>
					  <li>评论列表</li>

					</ol>

		</div>

            <div id="page-inner">


                <!-- /. ROW  -->

                <div class="col-md-12">
                 <div class="panel panel-default">
        <div class="panel-heading">
         警告:
        </div>

              <div class="panel-body">
                <div class="alert alert-danger">
                  <strong>Notice!</strong>  &nbsp&nbsp
                </div>

              </div>
        </div>



                  <!--   Kitchen Sink -->
                    <div class="panel panel-default">
                       <!--  <div class="panel-heading">
                            <a href="{:url('admin/type/add')}">添加 分类 </a>
                        </div> -->
                          <div class="panel-body">
                                    <form action="{:url('admin/shop/pinglun')}" method="post" class="form-inline">
                                        <div class="form-group">

                                            <input type="text" class="form-control" name="like" id="exampleInputName2" placeholder="用户名称">
                                        </div>

                                        <button type="submit" class="btn btn-default">搜索</button>
                                    </form>
                                </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th style=" text-align: center;line-height:20px">头像</th>
                                            <th style=" text-align: center;line-height:20px">用户名称</th>
                                            <th style=" text-align: center;line-height:20px">评论内容</th>
                                            <th style=" text-align: center;line-height:20px">评价分数</th>
                                            <th style=" text-align: center;line-height:20px">建立时间</th>
                                            <th style=" text-align: center;line-height:20px">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       {volist name="data" id="data"}

                                        <tr class="odd gradeX">
                                            <td style=" text-align: center;line-height:100px"><img style="width:100px;height:100px" src="{$data.person_head}" alt=""></td>

                                            <td style=" text-align: center;line-height:100px">{$data.person_name}</td>
                                            <td style=" text-align: center;line-height:100px">{$data.comment}</td>
                                            <td style=" text-align: center;line-height:100px">{$data.comment_star}</td>

                                            <td style=" text-align: center;line-height:100px">{$data.post_time|date="Y-m-d H:i:s",### }</td>
                                            <td style=" text-align: center;line-height:100px">

                                              <a class="btn btn-danger btn-sm" href="javascript:del_fun('{:url('admin/shop/pinglun_delete',array('id' => $data.id))}')">移除</a></td>


                                        </tr>
                                    {/volist}
                                    </tbody>


                                </table>
                                 {$page}
                            </div>
                        </div>
                    </div>
                     <!-- End  Kitchen Sink -->
                </div>

            </div>


        </div>
               <footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p></footer>
    </div>
             <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
     <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    <!-- jQuery Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery-1.10.2.js"></script>
      <!-- Bootstrap Js -->
    <script src="__PUBLIC__static/admin/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery.metisMenu.js"></script>
     <!-- DATA TABLE SCRIPTS -->
    <script src="__PUBLIC__static/admin/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.js"></script>
        <script>
			function del_fun(del_url)
			{
				if(confirm("确认删除？"))
					location.href = del_url;
			}
            $(document).ready(function () {
                $('#dataTables-example').dataTable();
            });
    </script>
         <!-- Custom Js -->
    <script src="__PUBLIC__static/admin/assets/js/custom-scripts.js"></script>


</body>
</html>
